<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>onload理解</title>
    <script>
        onload = ()=>{
            console.log('3:页面加载完成');
            console.log(document.body)
            console.log(4, document.body.innerText)
        };
        console.log('1:页面正在加载中……');
        console.log(2, document.body)
    </script>
</head>
<body>
    <h1>小卓测试</h1>
</body>
</html>